package com.platform.base.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 热解析对象 meter_analysis
 * 
 * @author wangqi
 * @date 2021-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("meter_analysis")
public class MeterAnalysis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 热表型号 */
    private Long typeId;

    /** 累计热量起始位 */
    @Excel(name = " 字段名")
    private String columnName;
    /** 累计热量起始位 */
    @Excel(name = "变量名")
    private String variableName;
    /** 累计热量起始位 */
    @Excel(name = "字段起始位")
    private String columnStart;

    /** 累计热量起始位 */
    @Excel(name = "字段中间位")
    private String columnMiddle;

    /** 累计流量起始位 */
    @Excel(name = "字段结束位")
    private String columnEnd;

    /** 当前功率起始位 */
    @Excel(name = "字段顺序")
    private String columnOrder;

    /** 瞬时流量起始位 */
    @Excel(name = "字段进制")
    private String columnHex;

    /**字段标识 */
    private String columnFlag;

    /**字段系数*/
    private String columnCoefficient;

    /**字段单位*/
    private String columnUnit;

    /**时间单位*/
    private String columnTime;


    @TableField(exist = false)
    @Excel(name = "热表型号", targetAttr = "typeName", type = Excel.Type.EXPORT)
    private MeterType type;

    @Excel(name = "热表型号", type = Excel.Type.IMPORT)
    @TableField(exist = false)
    private String typeName;

}
